#ifndef _STRAWGUI_COMPONENT_INSTANCE_CHECKBOX_H_
#define _STRAWGUI_COMPONENT_INSTANCE_CHECKBOX_H_

#include "sCIButton.h"

namespace sgui
{
namespace inst
{
class sComponentInstanceCheckbox : public sComponentInstanceButton
{
private:
    bool                        m_checked;
public:
	sComponentInstanceCheckbox(sGUI& gui, const res::sComponentObject& object, sComponentInstance* parent);
    
    void OnEventPressed();

    const bool& getChecked() const { return m_checked; }
    void setChecked(const bool& value);

    bool OnPress(const obs::sMousePressEvent& event, sComponentRectInstance* rect);

    ~sComponentInstanceCheckbox();
};

};
};

#endif